#include "Mutex.h"


Mutex::Mutex() {
	pthread_mutex_init(&mutex, NULL);
}


Mutex::~Mutex() {
	pthread_mutex_destroy(&mutex);
}


void Mutex::lock() {
	pthread_mutex_lock(&mutex);
}

void Mutex::unLock() {
	pthread_mutex_unlock(&mutex);
}


pthread_mutex_t *Mutex::getPrimitiveMutex() {
	return &mutex;
}

